package com.software.graduationproject.modules.order.object;

import com.software.graduationproject.modules.order.entity.OrderInfo;
import com.software.graduationproject.modules.shopping.object.ShoppingCartVo;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * OrderInfoVo : 订单表
 * ---------------------------------------------------------------------------------------------------------------------
 */
@Data
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
public class OrderInfoVo extends OrderInfo {

    @ApiModelProperty(value = "商家名称")
    private String marketersName;

    @ApiModelProperty(value = "商家图")
    private String marketersImg;

    @ApiModelProperty(value = "食品集合")
    private List<ShoppingCartVo.Foods> foodList;

    @ApiModelProperty(value = "食品名称")
    private String foodName;

    @ApiModelProperty(value = "食品图")
    private String foodImg;

    @ApiModelProperty(value = "商家ID")
    private Long marketersId;

    @ApiModelProperty(value = "商品数量")
    private Integer quantity;

    @ApiModelProperty(value = "商品总价")
    private Double price;

    @ApiModelProperty(value = "商品原价")
    private Double originalPrice;

    @ApiModelProperty(value = "商品口味")
    private String taste;

    @ApiModelProperty(value = "创建时间")
    private String createTime;

}
